const PanelMenu = imports.ui.panelMenu;
const Tweener = imports.ui.tweener;
const UserMenu = imports.ui.userMenu;
+const UserWidget = imports.ui.userWidget;
const _FADE_ANIMATION_TIME = 0.25;
const _SCROLL_ANIMATION_TIME = 0.5;
this.emit('activate', activatedItem);
},
- hideItemsExcept: function(exception) {
+ hideItems: function() {
for (let userName in this._items) {
let item = this._items[userName];
item.actor.can_focus = false;
item.syncStyleClasses();
item._timedLoginIndicator.scale_x = 0.;
- if (item != exception)
- item.actor.hide();
+ item.actor.hide();
}
this._box.remove_style_pseudo_class('expanded');
},
- hideItems: function() {
- return this.hideItemsExcept(null);
- },
-
showItems: function() {
let tasks = [];
x_fill: true,
y_fill: true,
x_align: St.Align.START });
+ this._promptUser = new St.Bin({ x_fill: true,
+ x_align: St.Align.START });
+ this._promptBox.add(this._promptUser,
+ { x_align: St.Align.START,
+ x_fill: true,
+ y_fill: true,
+ expand: true });
this._promptLabel = new St.Label({ style_class: 'login-dialog-prompt-label' });
this._promptBox.add(this._promptLabel,
this._promptBox.hide();
this._promptLoginHint.hide();
+ this._promptUser.set_child(null);
+
this._updateSensitivity(true);
this._promptEntry.set_text('');
},
_onUserListActivated: function(activatedItem) {
+ let userWidget = new UserWidget.UserWidget(item.user);
+ this._promptUser.set_child(userWidget.actor);
+
this._userList.actor.reactive = false;
- this._userList.hideItemsExcept(activatedItem);
+ this._userList.hideItems();
this._notListedButton.hide();
this._user = activatedItem.user;